package placemodel

type PlacesServiceRecord struct {
	Id         int    `gorm:"column:id" json:"id"`                  //ID
	ServiceId  int    `gorm:"column:service_id" json:"serviceId"`   //服务ID
	PlaceId    int    `gorm:"column:place_id" json:"placeId"`       //网点ID
	UserId     int    `gorm:"column:user_id" json:"userId"`         //员工ID
	Status     uint8  `gorm:"column:status" json:"status"`          //通知状态 1-取消发送 2-发送失败 3-待发送 4-已发送
	CreateTime string `gorm:"column:create_time" json:"createTime"` //创建时间
	UpdateTime string `gorm:"column:update_time" json:"updateTime"` //更新时间
}

func NewPlaceServiceRecord() *PlacesServiceRecord {
	return &PlacesServiceRecord{}
}

func (model *PlacesServiceRecord) GetTableName() string {
	return "places_service_record"
}
